package my.mark.mybaibaoxiang.jvm;

import java.util.ArrayList;

/**
 * @author wxming.
 * @date 2020/4/28.
 */
public class HeapTest {

    /**
     * 设置一个100kb的参数，即每个对象大小至少100kb。
     */
    byte[] a = new byte[1024*100];

    public static void main(String[] args) throws InterruptedException{
        ArrayList<HeapTest> heapTests = new ArrayList<>();
        while (true){
            heapTests.add(new HeapTest());
            Thread.sleep(30);
        }
    }
}
